#ifndef CMD_QUEUE_H_
#define CMD_QUEUE_H_
#define CMD_NEED_REPLY 1
#define CMD_NOT_REPLY 0

#define CMD_ITEM_LEN 2048
#define QUEUE_ITEM_CNT 10
struct queueItem{
	unsigned short len;
	unsigned int cmdId;
	unsigned char needReply;
	unsigned char* data;
	unsigned int timeStamp;
};
struct CmdQueue{
	struct queueItem CmdItems[QUEUE_ITEM_CNT];
};
void MyQueueInit();
int GetMyQueueSize();

int MyQueuePush(unsigned char* data, unsigned int dataLen, unsigned int cmdId, unsigned char needReply);

int MyQueuePop(unsigned char* buffer, int bufferLen, unsigned int* cmdId, unsigned char* needReply);

void MyQueueDestroy();
#endif
